package com.ruoyi.front_desk.FrontdeskPublicOpinion.mapper;
import com.ruoyi.front_desk.FrontdeskPublicOpinion.domain.FrontdeskPublicOpinion;
import com.ruoyi.front_desk.FrontdeskPublicOpinion.domain.FrontdesktempUserInfo;
import com.ruoyi.management_controller.PublicOpinion.domain.PublicOpinion;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 刘奥旸
 * @version 1.0
 */
@Mapper
public interface FrontdeskPublicOpinionMapper {
    List<FrontdesktempUserInfo> selectByParentIdAndRole(@Param("parentId") int parentId, @Param("role") int role);
    void insertPublicOpinion(FrontdeskPublicOpinion publicOpinion);

    // 查询方法
    List<FrontdeskPublicOpinion> selectByConstituencyId(int constituencyId);


    int updatePublicOpinionById(@Param("publicOpinion") FrontdeskPublicOpinion publicOpinion);

}
